<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="../ui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../ui/themes/icon.css">
<script type="text/javascript" src="../ui/jquery.min.js"></script>
<script type="text/javascript" src="../ui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../ui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../ui/jquery.serializejson.min.js"></script>
<%--<script type="text/javascript" src="../js/crud.js"></script>--%>

<script type="text/javascript">
   var name="dep";
	var height = 200;
	var width = 300;
   var columns=[[    
       {field:'depId',title:'部门编号',width:100},    
       {field:'name',title:'部门名称',width:100},    
       {field:'tele',title:'部门联系电话',width:100,align:'right'},
       {field:'-',title:'操作',formatter: function(value,row,index){
       	var oper = "<a href=\"javascript:void(0)\" onclick=\"edit(" + row.depId + ')">修改</a>';
       	oper += ' <a href="javascript:void(0)" onclick="del(' + row.depId + ')">删除</a>';
       	return oper;
		}}
   ]]
</script>

</head>
<body>
<div class="easyui-panel" style="padding-left:4px;border-bottom:0px;">
<div style="height:2px;"></div>
<form id="searchForm">
	<table>
		<tr>
			<td>部门名称</td>
			<td><input name="name"></td>
		</tr>
		<tr>
			<td>部门电话</td>
			<td><input name="tele"></td>
		</tr>
	</table>
	<button id="btnSearch" type="button">查询</button>
</form>
<div style="height:2px;"></div>
</div>
	
<table id="grid"></table>
<div id="editDlg">
	<form id="editForm">
		<table>
			<tr>
				<td>部门名称</td>
				<td><input type="text" name="name">
				<input type="hidden" name="depId" /></td>
			</tr>
			<tr>
				<td>部门电话</td>
				<td><input type="text"  name="tele"></td>
			</tr>
		</table>
		<button id="btnSave" type="button">保存</button>
	</form>
</div>
</body>
</html>